# 作者：一只牛吗
# 2025 年01月 25日 02时 38分 26秒
# 1278599690@qq.com
# a = [1, 2, 3, 4, 5]
# b = ['a', 'b', 'c', 'd', 'e']
# print(zip(a, b)) # 直接返回是返回的zip对象
# print(list(zip(a, b))) # 转换为列表
# print(set(zip(a, b))) # 转换为集合
# print(dict(zip(a, b))) # 转换为字典
# print(tuple(zip(a, b))) # 转换为元组


seasons = ['Spring', 'Summer', 'Fall', 'Winter']
print(list(enumerate(seasons)))
asdf = list(enumerate(seasons))
for k, v in asdf:
    print(k, v)

for i in asdf:
    print(i)

jkl = dict(asdf)
print(jkl)

# print({v: k for k, v in jkl.items()})
print(jkl.items())
print(enumerate(seasons))